package com.bootdo.system.dao;

import com.bootdo.system.domain.DayYingli;
import com.bootdo.system.domain.FormVO;
import com.bootdo.system.domain.JiaoyijiluDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * 
 * @author chglee
 * @email 1992lcg@163.com
 * @date 2021-02-04 11:46:52
 */
@Mapper
public interface JiaoyijiluDao {

	JiaoyijiluDO get(Long id);
	
	List<JiaoyijiluDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(JiaoyijiluDO jiaoyijilu);
	
	int update(JiaoyijiluDO jiaoyijilu);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

    List<JiaoyijiluDO> UserList(FormVO formVO);

    List<JiaoyijiluDO> UserListWithBizhongid(@Param("userId") Long userId, @Param("bizhongid") Integer bizhongid);

    BigDecimal getTodayYingli(Long userId);

    BigDecimal getdayYingli(@Param("userId") Long userId, @Param("day") Date day);

    BigDecimal getAllYingli(Long userId);

    JiaoyijiluDO getMairuPriceByUidAndBid(@Param("userid") Long userid, @Param("bizhongid") Integer bizhongid);

    JiaoyijiluDO getByBeizhu(@Param("beizhu") String beizhu);

	List<DayYingli> everydayyingli(@Param("userId") Long userId);

    BigDecimal getYestdayYingli(@Param("userid") Long userid);

    BigDecimal getTodaytuiguangYingli(@Param("parentId") Long parentId);

    BigDecimal getAlltuiguangYingli(@Param("parentId")Long parentId);

    List<JiaoyijiluDO> UserListAPI(FormVO formVO);

    List<JiaoyijiluDO> bizhongjilu(@Param("userId")Long userId,@Param("bizhongid") Long bizhongid);
}
